<template>
  <div class="content-container">
    <router-view v-slot="{ Component, route }">
      <keep-alive :include="cacheRoutes">
        <component :is="useFormatComponent(Component, route)" />
      </keep-alive>
    </router-view>
  </div>
</template>
<script setup>
import { useKeepAlive } from "@/hook/index";
const { useFormatComponent, cacheRoutes } = useKeepAlive();
</script>
<style lang="scss" scoped>
.content-container {
  height: 100%;
}
</style>
